package com.springapp.controller;

import com.springapp.service.impl.ArticleSce;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

/**
 * Created by nicol_000 on 27/08/14.
 */
@Controller
public class ControlPaletteIncident {

    @Autowired
    private ArticleSce artService;


    @RequestMapping(value="/recapIncident", method = RequestMethod.POST)
    public ModelAndView displayIncident(){
        ModelAndView model = new ModelAndView("Serv_Reap_Incident");

        model.addObject("lstArticles", artService.getLstArticle(false));

        return model;
    }

}



